package chamber.two;

import chamber.two.guice.ChamberTwoModule;
import com.google.common.util.concurrent.ServiceManager;
import com.google.inject.Inject;
import common.Program;
import common.ProgramFactory;

/**
 * Created by gcortes on 1/4/14.
 */
public class TestChamberTwo implements Program {
    private final ServiceManager manager;

    @Inject
    public TestChamberTwo(final ServiceManager manager) {
        this.manager = manager;
    }

    public static void main(final String[] args) {
        Program program = ProgramFactory.create(TestChamberTwo.class, new ChamberTwoModule());
        program.execute();
    }

    @Override
    public void execute() {
        manager.startAsync();
    }
}
